import requests
from config import RunConfig

def 物探project新增(para):
    response = requests.post(
        url=RunConfig.url + "/wt/project/create",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 获取物探项目下的工点信息(para):
    response = requests.get(
        url=RunConfig.url + "wt/project/engineer/list?name=&projectId=&segmentId=&segmentName=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def APP项目GPS信息上传(para):
    response = requests.post(
        url=RunConfig.url + "/gpsProject/upload",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 获取物探项目详情(para):
    response = requests.get(
        url=RunConfig.url + "wt/project/info/{id}?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 获取物探人员信息列表(para):
    response = requests.get(
        url=RunConfig.url + "wt/project/member?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物理勘探每日情况(para):
    response = requests.get(
        url=RunConfig.url + "wt/project/statistic",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探project删除(para):
    response = requests.post(
        url=RunConfig.url + "/wt/project/delete/{projectExtId}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 获取物探项目下的测段信息(para):
    response = requests.get(
        url=RunConfig.url + "wt/project/segment/list?name=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询物探项目信息(para):
    response = requests.post(
        url=RunConfig.url + "/wt/project/list",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
